<%@ page import="java.util.List"%>
<%@ page import="com.riq.entity.Department"%>
<%@ page import="com.riq.entity.Icon"%>
<%@ page import="java.util.logging.Logger"%>
<%@ page import="java.io.IOException"%>
<%@ page import="javax.servlet.*"%>

<% 
Icon i = (Icon) request.getAttribute("icon"); 
Department d = (Department) request.getAttribute("dept");
%>
 
<!-- Copyright 2010 John L. Reilly

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>FirstResponder</title>

<!--META-->
<meta http-equiv="content-type"  content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width" />

<!--STYLESHEET-->
<link rel="stylesheet" type="text/css" href="stylesheets/static.css" />
</head>

<body>
<!--FIXED HEADERS-->
<div class="headwrap">
<div class="hBlack">
<div class="headerLeftTop">FirstResponder</div>
<div class="headerRightTop">ver 0.9</div>
<div class="headerLeftBottom">Icon: Display</div>
<div class="headerRightBottom">12:34 PM</div>
</div>
<div class="hGray">
  <a class="buttonGrayHdr" href="mainMenu.html">Main</a>
  <a class="buttonGrayHdr" href="commandMenu.html">Command</a>
  <a class="buttonGrayHdr gSelected" href="department?action=display">Admin</a>
</div>
<div class="headerMist"></div>
</div>

<div class="outwrap">
<div class="headerPlug"></div>

<!--BUTTONS-->
<div id="centeredButtons"><ul><li>
<a class="button blue wide tall first"
href="department?action=display">
Back</a>
</li></ul></div>

<div id="centeredButtons"><ul><li>
<a class="button red narrow tall last" 
href="icon?action=delete&iconId=<%=i.getid()%>">
Delete Icon</a>
</li><li>
<a class="button green narrow tall last"  
href="icon?action=edit&iconId=<%=i.getid()%>">
Edit Icon</a>
</li></ul></div>

<div class="sub black">Icon</div>

<div class="row title">
Icon Preview:
<div id="scale-up" style="height: 30px; margin-bottom: 0px">
<img src="http://chart.apis.google.com/chart?cht=d&chl=<%=i.getshortName()%>'h\<%=i.getpadL()%>'-<%=i.getpadB()%>'<%=i.getpadR()%>'-<%=i.getpadT()%>'dim'\box1'b\<%=i.getbcolor()%>'fC\<%=i.getfcolor()%>'tC">
</div>
</div>
<div class="row title" style="margin-top: 0px;">Short Name: </div>
<div class="row" style="clear: none"><%=i.getshortName() %></div>
<div class="row title">Long Name: </div>
<div class="row" style="clear: none"><%=i.getlongName()%></div>
<div class="row title">Type: </div>
<div class="row" style="clear: none"><%=i.gettype()%></div>
<div class="row title">Background Color: </div>
<div class="row" style="clear: none"><%=i.getbcolor()%></div>
<div class="row title">Font Color: </div>
<div class="row" style="clear: none"><%=i.getfcolor()%></div>
<div class="row title">Padding (Top): </div>
<div class="row" style="clear: none"><%=i.getpadT()%></div>
<div class="row title">Padding (Bottom): </div>
<div class="row" style="clear: none"><%=i.getpadB()%></div>
<div class="row title">Padding (Left): </div>
<div class="row" style="clear: none"><%=i.getpadL()%></div>
<div class="row title">Padding (Right): </div>
<div class="row" style="clear: none"><%=i.getpadR()%></div>

<!--FOOTER-->
<div class="footer">FirstResponder</div>

<!--OUTLINE WRAPPER -->
</div> 

</body>
</html>
